| Total Complexity | 5 |
| Total Lines | 35 |
| Duplicated Lines | 0 % |
| Changes | 2 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 11 | final class FeatureTest extends TestCase |
||
| 12 | { |
||
| 13 | public function setUp(): void |
||
| 14 | { |
||
| 15 | Gacela::bootstrap(__DIR__); |
||
| 16 | } |
||
| 17 | |||
| 18 | public function test_object_facade(): void |
||
| 19 | { |
||
| 20 | $greet = (new TestStaticFacade())->formalGreet('Jesus'); |
||
| 21 | |||
| 22 | self::assertSame('Hello, Jesus.', $greet); |
||
| 23 | } |
||
| 24 | |||
| 25 | public function test_non_existing_facade_method(): void |
||
| 26 | { |
||
| 27 | $this->expectExceptionMessage('Unknown method: unknownGreet'); |
||
| 28 | |||
| 29 | TestStaticFacade::unknownGreet('anything'); |
||
|
1 ignored issue
–
show
|
|||
| 30 | } |
||
| 31 | |||
| 32 | public function test_static_facade(): void |
||
| 33 | { |
||
| 34 | $greet = TestStaticFacade::informalGreet('Chema'); |
||
| 35 | |||
| 36 | self::assertSame('Hi, Chema!', $greet); |
||
| 37 | } |
||
| 38 | |||
| 39 | public function test_static_factory_from_facade(): void |
||
| 46 | } |
||
| 47 | } |
||
| 48 |