/** * @covers ClassTypeDescription */ public function testInstantiateAndCheck() { $typeDescription = new ClassTypeDescription('lib.pkp.tests.classes.filter.TestClass1'); $compatibleObject = new TestClass1(); $wrongObject = new TestClass2(); self::assertTrue($typeDescription->isCompatible($compatibleObject)); self::assertFalse($typeDescription->isCompatible($wrongObject)); }