/** * @param ClassCompiler $compiler * @param string $php */ protected function assertPHP(ClassCompiler $compiler, $php) { $this->assertString($compiler->generateCode())->matches('/' . str_replace('%', '(.*)', preg_quote($php)) . '/sm'); $compiler->newInstance(); }
public function testConstructWillAcceptAnInterface() { $compiler = new ClassCompiler('Concise\\Mock\\ClassCompilerMock4'); $this->assertString($compiler->generateCode())->isNotEmpty; }