/** * @group shipTests */ public function testSquidsCantSeePoweredOffShip() { $squid = new Squid(); $shipStub = $this->getMock('Ship'); $shipStub->expects($this->any())->method('isPoweredOff')->will($this->returnValue(true)); $caughtYou = $squid->catchShip($shipStub); $this->assertFalse($caughtYou); }