コード例 #1
0
 /**
  * Enables self initializing fixtures (disabled by default)
  *
  * @param string $fixturePath
  */
 public function useFixtures($fixturePath)
 {
     if ($fixturePath) {
         $this->_fixturePath = FileFixture::normalizePath($fixturePath);
     } else {
         $this->disableFixtures();
     }
 }
コード例 #2
0
 public function testNormalizePathException()
 {
     $this->setExpectedException('TestTools\\Fixture\\Exception\\FixtureInvalidDirectoryException');
     FileFixture::normalizePath('/a/b/c');
 }