public function testDetectFail() { $stub = $this->getMock("Versionable\\Ferret\\Detector\\DetectorInterface"); $stub->expects($this->any())->method('detect')->will($this->returnValue(false)); $this->object->addDetector($stub); $stub = $this->getMock("Versionable\\Ferret\\Detector\\DetectorInterface"); $stub->expects($this->any())->method('detect')->will($this->returnValue(false)); $this->object->addDetector($stub); $this->assertFalse($this->object->detect('data/unit.false')); }