/** * @test * @covers Cocur\Watchman\Watch::delete() */ public function deleteDeletesTheWatch() { $this->watchman->shouldReceive('deleteWatch')->with('/var/www/foo')->once()->andReturn(true); $this->assertTrue($this->watch->delete()); }