mirror of
https://github.com/nextcloud/server.git
synced 2026-03-02 05:20:46 -05:00
14 lines
434 B
PHP
14 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');
|
|
}
|
|
}
|
|
|