/** * 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(); }
/** * 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(); }