1 | <?php |
||
7 | class ServiceLocatorDummyTest extends \PHPUnit_Framework_TestCase |
||
8 | { |
||
9 | /** @var ServiceLocatorDummy */ |
||
10 | protected $sut; |
||
11 | |||
12 | public function setUp() |
||
16 | |||
17 | /** |
||
18 | * @covers DmTest\ServiceManager\ServiceLocatorDummy |
||
19 | */ |
||
20 | public function testGetReturnsPreviouslySetObject() |
||
30 | |||
31 | /** |
||
32 | * @covers DmTest\ServiceManager\ServiceLocatorDummy |
||
33 | */ |
||
34 | public function testGetCreatesMockByDefault() |
||
40 | |||
41 | /** |
||
42 | * @covers DmTest\ServiceManager\ServiceLocatorDummy |
||
43 | * @expectedException \Zend\ServiceManager\Exception\ServiceNotFoundException |
||
44 | */ |
||
45 | public function testGetThrowsExceptionWhenGetFailsAndCreationIsOptedOut() |
||
49 | |||
50 | /** |
||
51 | * @covers DmTest\ServiceManager\ServiceLocatorDummy |
||
52 | */ |
||
53 | public function testGetCanCreateInterfaceMock() |
||
60 | |||
61 | /** |
||
62 | * @covers DmTest\ServiceManager\ServiceLocatorDummy |
||
63 | */ |
||
64 | public function testGetCanCreateTraitMock() |
||
74 | |||
75 | /** |
||
76 | * @covers DmTest\ServiceManager\ServiceLocatorDummy |
||
77 | */ |
||
78 | public function testHasReturnsFalseForUnsetKeys() |
||
82 | |||
83 | /** |
||
84 | * @covers DmTest\ServiceManager\ServiceLocatorDummy |
||
85 | */ |
||
86 | public function testHasReturnsTrueForSetKeys() |
||
92 | } |
||
93 |