public function testGetNamed() { $this->assertEquals(['param1' => 'param', 'param2' => 'param', 'param3' => 'param'], (new Named())->getNamed($this->interface->getMethod('__construct'))); $this->assertEquals(['prop1' => 'prop'], (new Named())->getNamed($this->interface->getProperty('prop1'))); $this->assertEquals(['1st' => 'ok'], (new Named())->getNamed($this->interface->getProperty('namedAtFirstLine'))); }
public function testGetInject() { $this->assertEquals('1st', (new Inject())->getInject($this->interface->getProperty('injectAtFirstLine'))); }
public function testGetTypeOfProperty() { $this->assertEquals('Fixture\\Momonga', (new Type())->getType($this->interface->getProperty('prop1'))); $this->assertNull((new Type())->getType($this->interface->getProperty('injectAtFirstLine'))); }