PopTest\Code\InterfaceTest::testAddGetAndRemoveMethod PHP Method

testAddGetAndRemoveMethod() public method

    public function testAddGetAndRemoveMethod()
    {
        $i = InterfaceGenerator::factory('TestInterface');
        $i->addMethod(new MethodGenerator('testMethod'));
        $this->assertEquals('testMethod', $i->getMethod('testMethod')->getName());
        $i->removeMethod('testMethod');
        $this->assertNull($i->getMethod('testMethod'));
    }