Pheasant\Tests\ArrayCacheTest::testMethodIsAccessible PHP Метод

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

    public function testMethodIsAccessible()
    {
        $cache = new \Pheasant\Cache\ArrayCache();
        $animal = new Animal(array('id' => 1, 'type' => 'llama'));
        $cache->add($animal);
        $row = $cache->get($animal->identity(), function () {
            throw new \InvalidArgumentException("Missing animal");
        });
        $this->assertTrue(method_exists($row, 'scopes'));
    }