lithium\tests\cases\core\LibrariesTest::testServiceLocateAll PHP Method

testServiceLocateAll() public method

    public function testServiceLocateAll()
    {
        $result = Libraries::locate('tests');
        $this->assertTrue(count($result) > 30);
        $expected = array('lithium\\template\\view\\adapter\\File', 'lithium\\template\\view\\adapter\\Simple');
        $result = Libraries::locate('adapter.template.view');
        $this->assertEqual($expected, $result);
        $result = Libraries::locate('test.filter');
        $this->assertTrue(count($result) >= 4);
        $this->assertTrue(in_array('lithium\\test\\filter\\Affected', $result));
        $this->assertTrue(in_array('lithium\\test\\filter\\Complexity', $result));
        $this->assertTrue(in_array('lithium\\test\\filter\\Coverage', $result));
        $this->assertTrue(in_array('lithium\\test\\filter\\Profiler', $result));
    }