1 2 3 4 5 6 7 8 9 10 11 12 13 14 15
<?php namespace React\Tests\Promise\Timer; use React\Promise\Timer\TimeoutException; class TimeoutExceptionTest extends TestCase { public function testAccessTimeout() { $e = new TimeoutException(10); $this->assertEquals(10, $e->getTimeout()); } }