Beispiel #1
0
 /**
  * @test
  * @covers Cocur\Ea\MethodFactory::generate()
  * @covers Cocur\Ea\MethodFactory::generateStatic()
  */
 public function generateReturnsCodeOfMethodWithStatic()
 {
     $m = new MethodFactory('foo');
     $m->isStatic(true);
     $this->assertSame('static function foo() {}', $m->generate());
 }