Updated unit tests for PHPUnit 8.
This commit is contained in:
1 parent
59a17105ae
commit
739ed7dd90
13 files changed
+50
-36
No files matched your search
@@ -50,8 +50,9 @@ class HookTest extends LapsTestCase {
|
||||
|
||||
$result = $formatter->format( $hook );
|
||||
|
||||
$this->assertInternalType( 'array', $result );
|
||||
$this->assertArraySubset( [ 'function(2)', 'class::method' ], $result );
|
||||
$this->assertIsArray( $result );
|
||||
$this->assertEquals( 'function(2)', $result[0] );
|
||||
$this->assertEquals( 'class::method', $result[1] );
|
||||
$this->assertStringStartsWith( 'closure from', $result[2] );
|
||||
$this->assertStringStartsWith( 'anonymous class from', $result[3] );
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user