function testSelf() { $this->assertTrue(Root::makeNew() instanceof Root); $this->assertTrue(Child::makeNew() instanceof Root); $this->assertFalse(Child::makeNew() instanceof Child); $child = new Child(); $this->assertFalse($child->makeNew() instanceof Child); }