Skip to content

Commit

Permalink
try to comply with CS
Browse files Browse the repository at this point in the history
  • Loading branch information
jasverix committed Feb 21, 2023
1 parent 5275e2e commit 652a86f
Showing 1 changed file with 10 additions and 5 deletions.
15 changes: 10 additions & 5 deletions tests/unit/Framework/Constraint/ObjectHasPropertyTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,8 @@ public function testConstraintObjectHasAttribute(): void
$this->assertCount(1, $constraint);

$this->expectException(ExpectationFailedException::class);
$this->expectExceptionMessage(<<<'EOF'
$this->expectExceptionMessage(
<<<'EOF'
Failed asserting that object of class "stdClass" has property "privateAttribute".
EOF
);
Expand All @@ -46,9 +47,11 @@ public function testConstraintObjectHasAttribute2(): void
$constraint = new ObjectHasProperty('privateAttribute');

$this->expectException(ExpectationFailedException::class);
$this->expectExceptionMessage(<<<EOF
$this->expectExceptionMessage(
<<<EOF
custom message\nFailed asserting that object of class "stdClass" has property "privateAttribute".
EOF);
EOF
);
$constraint->evaluate(new stdClass, 'custom message');
}

Expand All @@ -57,9 +60,11 @@ public function testConstraintObjectHasAttributeWithNoObject(): void
$constraint = new ObjectHasProperty('privateAttribute');

$this->expectException(ExpectationFailedException::class);
$this->expectExceptionMessage(<<<EOF
$this->expectExceptionMessage(
<<<EOF
custom message\nFailed asserting that class "" has property "privateAttribute".
EOF);
EOF
);
$constraint->evaluate('', 'custom message');
}
}

0 comments on commit 652a86f

Please sign in to comment.