Inheritance: extends PHPUnit_Framework_TestCase, use trait AnalyzesPerformance
コード例 #1
0
ファイル: testcache.php プロジェクト: vjroby/library
 /**
  * 
  */
 public static function cache()
 {
     parent::add(function () {
         $cache = new Framework\Cache();
         return $cache instanceof Framework\Cache;
     }, "Cache instantiates in uninitialized state", "Cache");
 }
コード例 #2
0
ファイル: testbooks.php プロジェクト: vjroby/library
 /**
  * Test if the controller exists
  */
 public static function books()
 {
     parent::add(function () {
         $books = new \Books();
         return $books instanceof \Books;
     }, "Books (Controller) instantiates in uninitialized state", "Book");
 }