Пример #1
0
 public function testBaseActionCanGetAndSetName()
 {
     $baseAction = new Action\Base();
     $this->assertEquals('Base', $baseAction->getName());
     $baseAction->setName('Foo');
     $this->assertEquals('Foo', $baseAction->getName());
 }
Пример #2
0
 public function testAddActionCanHandleActionObjects()
 {
     $fooAction = new Action\Base();
     $fooAction->setName('Foo');
     $this->_repository->addAction($fooAction);
     $this->assertEquals(1, count($this->_repository));
     $this->assertEquals('Zend\\Tool\\Framework\\Action\\Base', get_class($this->_repository->getAction('Foo')));
 }