public function testExtendsClassThatDoesNotExist() { $config = new Config(); $logger = $this->getMockBuilder('Zephir\\Logger')->disableOriginalConstructor()->getMock(); $compiler = new Compiler($config, $logger, new Backend($config)); $topStatement = array('name' => 'myClass', 'extends' => array(array('value' => 'doesNotExist'))); $sUT = new sUT('myClass', 'myClass.zep', $config, $logger); $sUT->preCompileInterface('myNamespace', $topStatement, null); $logger->expects($this->once())->method('warning'); $sUT->checkDependencies($compiler); }
public function __construct($config, CompilerFile $class) { $this->compilerFile = $class; $this->class = $class->getClassDefinition(); }