public function testThresholdHigherThenImpact() { $filter = new \Expose\Filter(); $filter->setImpact(5); $collection = new \Expose\FilterCollection(); $collection->addFilter($filter); $manager_mock = $this->getMockBuilder('\\Expose\\Manager')->setConstructorArgs(array($collection, new \Expose\MockLogger()))->setMethods(array('sendNotification'))->getMock(); $manager_mock->expects($this->never())->method('sendNotification'); $manager_mock->setThreshold(100); $manager_mock->run(array('test' => 'test'), false, true); }