Example #1
0
 public function test_calling_mock_with_stubbed_method_and_one_expectation_verified()
 {
     $mock = new Mock('Test');
     $mock->stubs('method')->returns("hola");
     $mock->expects('method')->with("param1")->returns("returned data");
     $this->assertEquals("returned data", $mock->method("param1"));
     $this->assertTrue($mock->verify());
 }