update to phpunit8

This commit is contained in:
Dominik Liebler
2019-08-17 23:05:15 +02:00
parent 78ffb07d9c
commit a73c253ffc
10 changed files with 321 additions and 263 deletions

View File

@@ -20,11 +20,10 @@ class DataMapperTest extends TestCase
$this->assertInstanceOf(User::class, $user);
}
/**
* @expectedException \InvalidArgumentException
*/
public function testWillNotMapInvalidData()
{
$this->expectException(\InvalidArgumentException::class);
$storage = new StorageAdapter([]);
$mapper = new UserMapper($storage);