示例#1
0
 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')));
 }
示例#2
0
 public function testGetInject()
 {
     $this->assertEquals('1st', (new Inject())->getInject($this->interface->getProperty('injectAtFirstLine')));
 }
示例#3
0
 public function testGetTypeOfProperty()
 {
     $this->assertEquals('Fixture\\Momonga', (new Type())->getType($this->interface->getProperty('prop1')));
     $this->assertNull((new Type())->getType($this->interface->getProperty('injectAtFirstLine')));
 }