public function testStartWithArray() { $driver = $this->buildMock(); $driver->expects($this->once())->method('measureTime')->with('foo/bar'); Drivers::set($driver); Time::start(["foo", "bar"]); }
public function testSetAndGet() { $driver = $this->getMock("Wikia\\Measurements\\Driver"); Drivers::set($driver); $this->assertEquals($driver, Drivers::get()); }