Phalcon\Test\Proxy\Assets\Manager::exists PHP Method

exists() public method

public exists ( $id )
    public function exists($id)
    {
        return parent::exists($id);
    }

Usage Example

Beispiel #1
0
 /**
  * exists tests
  *
  * @author Wojciech Ĺšlawski <*****@*****.**>
  * @since  2016-03-16
  */
 public function testAssetsExistsCollection()
 {
     $this->specify("The exists method in assets does not return correct value", function () {
         $assets = new Manager();
         $assets->collection('footer')->addCss('/css/style1.css');
         $footer = $assets->exists('footer');
         $header = $assets->exists('header');
         expect($footer)->true();
         expect($header)->false();
     });
 }