| Total Complexity | 5 |
| Total Lines | 47 |
| Duplicated Lines | 0 % |
| Changes | 3 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 18 | private RegistryInterface $registry; |
||
| 19 | |||
| 20 | protected function setUp(): void |
||
| 21 | { |
||
| 22 | $this->registry = new Registry(); |
||
| 23 | $this->adapter = new Adapter(new AnotherRegistry()); |
||
| 24 | } |
||
| 25 | |||
| 26 | public function testSecond() |
||
| 27 | { |
||
| 28 | $this->registry->setFirst('First'); |
||
| 29 | $this->assertEquals('First', $this->registry->getFirst()); |
||
| 30 | $this->registry->setSecond('3.14'); |
||
| 31 | $this->assertEquals('3.14', $this->registry->getSecond()); |
||
| 32 | } |
||
| 33 | |||
| 34 | public function testAdapt() |
||
| 35 | { |
||
| 36 | $this->adapter->setFirst('First'); |
||
| 37 | $this->assertEquals('First', $this->adapter->getFirst()); |
||
| 38 | $this->adapter->setSecond('3.14'); |
||
| 39 | $this->assertEquals('3.14', $this->adapter->getSecond()); |
||
| 40 | } |
||
| 41 | } |
||
| 42 |