<?php range(string|int|float $start, string|int|float $end, int|float $step = 1): array
<?php $this->assertGreaterThanOrEqual(1, $firstResult); $this->assertLessThanOrEqual(10000000, $firstResult); foreach (range(1, 100) as $i) { $this->assertEquals($firstResult, $testClass->getNumber()); } }
<?php } }; foreach (range('A', 'Z') as $letter) { $firstResult = $testClass->getNumberForLetter($letter); $this->assertStringStartsWith($letter, $firstResult);
<?php $firstResult = $testClass->getNumberForLetter($letter); $this->assertStringStartsWith($letter, $firstResult); foreach (range(1, 100) as $i) { $this->assertEquals($firstResult, $testClass->getNumberForLetter($letter)); } }
<?php { $previousNumbers = []; foreach (range(1, 5) as $number) { $testClass = new TestClass(); $number = $testClass->getRandomNumber();
<?php $this->assertGreaterThanOrEqual(1, $firstResult); $this->assertLessThanOrEqual(10000000, $firstResult); foreach (range(1, 100) as $i) { $this->assertEquals($firstResult, $class::getNumber()); } }
<?php }; $class = get_class($object); foreach (range('A', 'Z') as $letter) { $firstResult = $class::getNumberForLetter($letter); $this->assertStringStartsWith($letter, $firstResult);
<?php $firstResult = $class::getNumberForLetter($letter); $this->assertStringStartsWith($letter, $firstResult); foreach (range(1, 100) as $i) { $this->assertEquals($firstResult, $class::getNumberForLetter($letter)); } }
<?php { $result = eval('return once( function () { return random_int(1, 1000); } ) ;'); $this->assertTrue(in_array($result, range(1, 1000))); }