public function testMethodCalledBefore()
{
$mock = new \lithium\tests\mocks\test\mockStdClass\Mock();
$mock->method1();
$mock->method2();
$mock->method1();
$chain = Mocker::chain($mock);
$this->assertTrue($chain->called('method1')->called('method2')->called('method1')->success());
$this->assertFalse($chain->called('method2')->called('method1')->called('method1')->success());
}