public function testGetSoftDependenciesCount() { $this->dependencyFirst->expects($this->never())->method('isHard'); $this->dependencyFirst->expects($this->once())->method('isSoft')->will($this->returnValue(true)); $this->dependencySecond->expects($this->never())->method('isHard'); $this->dependencySecond->expects($this->once())->method('isSoft')->will($this->returnValue(false)); $this->assertEquals(1, $this->module->getSoftDependenciesCount()); }