lithium\tests\cases\test\MockerChainTest::testFunctionSuccessful PHP Метод

testFunctionSuccessful() публичный Метод

    public function testFunctionSuccessful()
    {
        Mocker::overwriteFunction('app\\extensions\\file_get_contents', function () {
            return 'foo';
        });
        \app\extensions\file_get_contents();
        $chain = Mocker::chain('app\\extensions\\file_get_contents');
        $this->assertTrue($chain->called('app\\extensions\\file_get_contents')->with()->success());
    }