Пример #1
0
 public function test_calling_method_with_no_parameters()
 {
     $mock = new Mock('Test');
     $mock->expects('method')->returns("returned data");
     $this->assertEquals("returned data", $mock->method());
     $this->assertTrue(Mock::verifyAll());
 }