server/3rdparty/simpletest/test/interfaces_test_php5_1.php
Robin Appelman 3579446930 use SimpleTest for unit testing
includes some tests for storage providers, more to come
2012-02-12 18:07:58 +01:00

14 lines
434 B
PHP
Executable file

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