PopTest\Code\InterfaceTest::testAddGetAndRemoveMethod PHP 메소드

testAddGetAndRemoveMethod() 공개 메소드

    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'));
    }