/** * @expectedException \Mockery\Exception */ public function testNotAnyOfConstraintThrowsExceptionWhenConstraintUnmatched() { $this->mock->shouldReceive('foo')->with(Mockery::notAnyOf(1, 2))->once(); $this->mock->foo(2); $this->container->mockery_verify(); }