/** @test */ public function every_fifteen_numbers_is_fizzbuzz() { for ($i = 1; $i <= 1000; $i++) { if ($i % 5 == 0 && $i % 3 == 0) { $this->assertEquals('FizzBuzz', $this->fizzbuzz->getData($i)); } } }
/** * @dataProvider fizzBuzzOutcomesProvider */ public function testFizzBuzz($number, $outcome) { self::assertSame($outcome, $this->fizzBuzz->fizzBuzz($number)); }
public function testGetResultWithInputDivisibleByNeither() { $result = $this->fizzBuzz->getResult(1); $this->assertEquals('1', $result); }
/** @test */ public function it_should_test_something() { $fizzBuzz = new FizzBuzz(); $this->assertTrue($fizzBuzz->changeMe()); }