Ejemplo n.º 1
0
 public function testNestedPresenterMethodCalls()
 {
     $presenter = new PresenterStub(new PresenterStub2(new InjectStub()));
     $this->assertEquals($presenter->testMethod(), 'testMethod');
     $this->assertEquals($presenter->testMethod2(), 'testMethod2');
     $this->assertEquals($presenter->testMethod3(), 'testMethod3');
 }
Ejemplo n.º 2
0
 /**
  * @expectedException BadMethodCallException
  */
 public function testArrayMethodCallException()
 {
     $presenter = new PresenterStub(array('testVar' => 'testvar'));
     $presenter->someMethod();
 }