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

testPathMustExist() public method

public testPathMustExist ( )
    public function testPathMustExist()
    {
        try {
            new Php(array('path' => $this->_path));
            $result = true;
        } catch (Exception $e) {
            $result = false;
        }
        $this->assert($result);
        try {
            new Php(array('path' => "{$this->_path}/i_do_not_exist"));
            $result = false;
        } catch (Exception $e) {
            $result = true;
        }
        $this->assert($result);
    }