/** * Test that fake fixture data (using the Faker library) can be generated. * The desired behavior is that the 'fake' method of Fixture will act as a proxy * to the Faker library. * * @test * @return void */ public function itShouldAbleToGenerateFakeFixtureData() { $word = Fixture::fake('word'); $number = Fixture::fake('numberBetween', 1, 1); $this->assertInternalType('string', $word); $this->assertEquals(1, $number); }
/** * Test that fake fixture data (using the Faker library) can be generated. * The desired behavior is that the 'fake' method of Fixture will act as a proxy * to the Faker library. * * @test * @return void */ public function it_should_able_to_generate_fake_fixture_data() { $word = Fixture::fake('word'); $number = Fixture::fake('randomNumber', 1, 1); $this->assertInternalType('string', $word); $this->assertEquals(1, $number); }