Fixed error when formatting empty hook.

Prop @kellymears Closes #30
This commit is contained in:
Andrey Savchenko committed 2019-03-24 19:52:42 +02:00
1 parent 739ed7dd90
commit ba72763486
3 files changed
+11

No files matched your search

+2
View File
@@ -55,6 +55,8 @@ class HookTest extends LapsTestCase {
$this->assertEquals( 'class::method', $result[1] );
$this->assertStringStartsWith( 'closure from', $result[2] );
$this->assertStringStartsWith( 'anonymous class from', $result[3] );
$this->assertEquals( [], $formatter->format( [] ) );
}
}