public function AbstractProcessTest::testFloatAndNullTimeout in Zircon Profile 8.0
Same name and namespace in other branches
- 8 vendor/symfony/process/Tests/AbstractProcessTest.php \Symfony\Component\Process\Tests\AbstractProcessTest::testFloatAndNullTimeout()
File
- vendor/
symfony/ process/ Tests/ AbstractProcessTest.php, line 61
Class
- AbstractProcessTest
- @author Robert Schönthal <seroscho@googlemail.com>
Namespace
Symfony\Component\Process\TestsCode
public function testFloatAndNullTimeout() {
$p = $this
->getProcess('');
$p
->setTimeout(10);
$this
->assertSame(10.0, $p
->getTimeout());
$p
->setTimeout(null);
$this
->assertNull($p
->getTimeout());
$p
->setTimeout(0.0);
$this
->assertNull($p
->getTimeout());
}