Ejemplo n.º 1
0
 public function __toString()
 {
     $arguments = array();
     foreach ($this->argumentMatchers as $argumentMatcher) {
         $arguments[] = $argumentMatcher->__toString();
     }
     return "Expected {$this->mockReader->getName($this->getObject())}->{$this->getMethod()}(" . implode(', ', $arguments) . ") to be called {$this->getVerifierMode()->__toString()}";
 }
Ejemplo n.º 2
0
 public function testGetName()
 {
     $this->mock->__PHAKE_name = 'PhakeMock';
     $this->assertSame($this->mock->__PHAKE_name, $this->reader->getName($this->mock));
 }