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()); }
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()); }