public function testParseImplementsInterfaceToString()
 {
     $collection = new InterfaceCollection();
     $collection->add('\\Countable');
     $expected = ' implements \\Countable';
     $this->assertEquals($expected, $collection->toString());
 }
Ejemplo n.º 2
0
 /**
  * @inheritdoc
  */
 public function addInterface($interfaceName)
 {
     $this->interfaces->add($interfaceName);
     $this->createMethodsFromInterface($interfaceName);
     return $this;
 }