public function testUnderAtLeastOnce() { $this->test->expectOnce('assert', array(new MemberExpectation('count', 1), 0)); $mock = new MockDummyWithInjectedTestCase(); $mock->expectAtLeastOnce("aMethod"); $mock->mock->atTestEnd('testSomething', $this->test); }
function testUnderAtLeastOnce() { $this->test->expectOnce('assert', array(new LikeExpectation(new MinimumCallCountExpectation('aMethod', 1)), 0)); $mock = new MockDummyWithInjectedTestCase(); $mock->expectAtLeastOnce("aMethod"); $mock->mock->atTestEnd('testSomething', $this->test); }
function testUnderAtLeastOnce() { $this->test->expectOnce("assertTrue", array(false, '*')); $mock = new MockDummyWithInjectedTestCase(); $mock->expectAtLeastOnce("aMethod"); $mock->atTestEnd('testSomething'); }