public function AbstractProcessTest::testFloatAndNullTimeout in Zircon Profile 8
Same name and namespace in other branches
- 8.0 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());
}