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