コード例 #1
0
ファイル: RepositoryTest.php プロジェクト: heiglandreas/zf2
 public function testRepositoryIsIterable()
 {
     $this->_repository->addManifest(new \ZendTest\Tool\Framework\Manifest\TestAsset\ManifestGoodOne());
     $this->_repository->process();
     $this->assertTrue($this->_repository instanceof \Traversable);
     foreach ($this->_repository as $thing) {
         $this->assertTrue(true);
     }
 }
コード例 #2
0
 public function testRepositoryIsIterable()
 {
     $this->_repository->addManifest(new Zend_Tool_Framework_Manifest_ManifestGoodOne());
     $this->_repository->process();
     $this->assertTrue($this->_repository instanceof Traversable);
     foreach ($this->_repository as $thing) {
         $this->assertTrue(true);
     }
 }