| Conditions | 1 |
| Paths | 1 |
| Total Lines | 13 |
| Code Lines | 6 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 31 | public function testGetName(): void |
||
| 32 | { |
||
| 33 | $constraint = new Constraint(); |
||
| 34 | |||
| 35 | $this->assertNull($constraint->getName()); |
||
| 36 | |||
| 37 | $constraint->name('name'); |
||
| 38 | |||
| 39 | $this->assertSame('name', $constraint->getName()); |
||
| 40 | |||
| 41 | $constraint->name(new stdClass()); |
||
| 42 | |||
| 43 | $this->assertInstanceOf(stdClass::class, $constraint->getName()); |
||
| 44 | } |
||
| 46 |