| Conditions | 1 |
| Paths | 1 |
| Total Lines | 6 |
| Code Lines | 5 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 26 | public function testGivenHarmfulText_itFails(): void { |
||
| 27 | $textPolicy = $this->createMock( TextPolicyValidator::class ); |
||
| 28 | $textPolicy->method( $this->anything() )->willReturn( false ); |
||
| 29 | $validator = new FieldTextPolicyValidator( $textPolicy ); |
||
| 30 | $this->assertFalse( $validator->validate( 'mean tiger' )->isSuccessful() ); |
||
| 31 | } |
||
| 32 | |||
| 44 |