Updated unit tests for PHPUnit 8.

This commit is contained in:
Andrey Savchenko committed 2019-03-24 19:32:33 +02:00
1 parent 59a17105ae
commit 739ed7dd90
13 files changed
+50 -36

No files matched your search

+3 -2
View File
@@ -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] );
}