@@ 13-30 (lines=18) @@ | ||
10 | * |
|
11 | * @author gbprod <[email protected]> |
|
12 | */ |
|
13 | class HasFinishedProvidingTest extends \PHPUnit_Framework_TestCase |
|
14 | { |
|
15 | public function testConstruction() |
|
16 | { |
|
17 | $entry = $this |
|
18 | ->getMockBuilder(RegistryEntry::class) |
|
19 | ->disableOriginalConstructor() |
|
20 | ->getMock() |
|
21 | ; |
|
22 | ||
23 | $testedInstance = new HasFinishedProviding($entry); |
|
24 | ||
25 | $this->assertEquals( |
|
26 | $entry, |
|
27 | $testedInstance->getEntry() |
|
28 | ); |
|
29 | } |
|
30 | } |
|
31 |
@@ 13-30 (lines=18) @@ | ||
10 | * |
|
11 | * @author gbprod <[email protected]> |
|
12 | */ |
|
13 | class HasStartedProvidingTest extends \PHPUnit_Framework_TestCase |
|
14 | { |
|
15 | public function testConstruction() |
|
16 | { |
|
17 | $entry = $this |
|
18 | ->getMockBuilder(RegistryEntry::class) |
|
19 | ->disableOriginalConstructor() |
|
20 | ->getMock() |
|
21 | ; |
|
22 | ||
23 | $testedInstance = new HasStartedProviding($entry); |
|
24 | ||
25 | $this->assertEquals( |
|
26 | $entry, |
|
27 | $testedInstance->getEntry() |
|
28 | ); |
|
29 | } |
|
30 | } |
|
31 |