public function testConstructorFail() { if (PHP_MAJOR_VERSION >= 7) { $this->setExpectedException('\\TypeError'); } new AliasPathStackResolver('this_should_fail'); }