lithium\tests\cases\g11n\catalog\adapter\CodeTest::testPathMustExist PHP Method

testPathMustExist() public method

public testPathMustExist ( )
    public function testPathMustExist()
    {
        $path = Libraries::get(true, 'resources') . '/tmp/tests';
        try {
            new Code(array('path' => $this->_path));
            $result = true;
        } catch (Exception $e) {
            $result = false;
        }
        $this->assert($result);
        try {
            new Code(array('path' => "{$path}/i_do_not_exist"));
            $result = false;
        } catch (Exception $e) {
            $result = true;
        }
        $this->assert($result);
    }