public function testGetSoftDependenciesCount() { $this->moduleFirst->expects($this->never())->method('getHardDependenciesCount'); $this->moduleFirst->expects($this->once())->method('getSoftDependenciesCount')->will($this->returnValue(1)); $this->moduleSecond->expects($this->never())->method('getHardDependenciesCount'); $this->moduleSecond->expects($this->once())->method('getSoftDependenciesCount')->will($this->returnValue(3)); $this->assertEquals(4, $this->config->getSoftDependenciesCount()); }