Google\Cloud\Tests\BigQuery\TimeTest::testToString PHP Method

testToString() public method

public testToString ( )
    public function testToString()
    {
        $value = new \DateTime();
        $time = new Time($value);
        $expected = $value->format('H:i:s.u');
        $this->assertEquals($expected, (string) $time);
        $this->assertEquals($expected, $time->formatAsString());
    }