This repository has been archived on 2018-10-12. You can view files and clone it, but cannot push or open issues or pull requests.
OpenSQLManager/tests/simpletest/test/interfaces_test_php5_1.php

15 lines
434 B
PHP

<?php
interface SampleInterfaceWithHintInSignature {
function method(array $hinted);
}
class TestOfInterfaceMocksWithHintInSignature extends UnitTestCase {
function testBasicConstructOfAnInterfaceWithHintInSignature() {
Mock::generate('SampleInterfaceWithHintInSignature');
$mock = new MockSampleInterfaceWithHintInSignature();
$this->assertIsA($mock, 'SampleInterfaceWithHintInSignature');
}
}