public function testMainTrueUnlessDoesntApplyConfigurable() { $this->project->setProperty('unlessProperty', 'someValue'); $this->target->setUnless('unlessProperty'); $configurable = $this->getMockBuilder('RuntimeConfigurable')->disableOriginalConstructor()->getMock(); $configurable->expects($this->never())->method('maybeConfigure'); $this->target->addDataType($configurable); $this->target->main(); }