/** * @covers PsUtil::assertInterfaceExists */ public function testAssertInterfaceExists() { PsUtil::assertInterfaceExists('InterfaceA'); PsUtil::assertInterfaceExists('InterfaceB'); try { PsUtil::assertInterfaceExists(ClassA::get__CLASS__()); $this->fail('Exception is expected'); } catch (PException $ex) { //OK } try { PsUtil::assertInterfaceExists(self::NOT_ALLOWED_STR); $this->fail('Exception is expected'); } catch (PException $ex) { //OK } }