/** * testGetTypeReturnsInjectedConstructorTargetArgument * * @return void * @group pdepend * @group pdepend::ast * @group unittest */ public function testGetTypeReturnsInjectedConstructorTargetArgument() { $target = $this->getMockForAbstractClass('PHP_Depend_Code_AbstractClassOrInterface', array(__CLASS__)); $context = $this->getMock('PHP_Depend_Builder_Context'); $reference = new PHP_Depend_Code_ASTSelfReference($context, $target); self::assertSame($target, $reference->getType()); }
/** * testSelfReferenceHasExpectedEndColumn * * @param PHP_Depend_Code_ASTSelfReference $reference * * @return void * @depends testSelfReference */ public function testSelfReferenceHasExpectedEndColumn($reference) { $this->assertEquals(16, $reference->getEndColumn($reference)); }