Skip to content

Commit

Permalink
Throw a type error if type and value don't exactly match
Browse files Browse the repository at this point in the history
  • Loading branch information
WyriHaximus committed Aug 12, 2016
1 parent 785572b commit 09e05d9
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/AbstractResourceTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -131,7 +131,10 @@ public function testPropertiesIncompatible(string $property, string $method, Typ
$json,
'Async'
);
$this->assertSame($value, $resource->{$method}());

if ($value !== $resource->{$method}()) {
throw new TypeError();
}
}

public function testInterface()
Expand Down

0 comments on commit 09e05d9

Please sign in to comment.