Пример #1
0
 /**
  * tearDown method.
  */
 public function tearDown()
 {
     $this->db->query("DELETE FROM users");
     $this->db->query("DELETE FROM roles");
     $this->db->query("DELETE FROM games");
     $this->fixture->setFixtures(array());
     m::close();
 }
Пример #2
0
 /**
  * Test that an an exception is thrown when trying to access a fixture that
  * does not exist
  *
  * @test
  * @expectedException Codesleeve\Fixture\Exceptions\InvalidFixtureNameException
  * @return void
  */
 public function itShouldThrowAnExceptionIfTheFixtureNameDoesNotExist()
 {
     $this->fixture->setConfig(array('location' => __DIR__ . '/fixtures/standard'));
     $this->fixture->setFixtures(array());
     $this->fixture->foo();
 }
Пример #3
0
 /**
  * Test that an an exception is thrown when trying to access a fixture that 
  * does not exist
  *
  * @test
  * @expectedException Codesleeve\Fixture\Exceptions\InvalidFixtureNameException
  * @return void
  */
 public function it_should_throw_an_exception_if_the_fixture_name_does_not_exist()
 {
     $this->fixture->setConfig(array('location' => __DIR__ . '/fixtures/standard'));
     $this->fixture->setFixtures(array());
     $this->fixture->foo();
 }