/** * @expectedException ehough_mockery_mockery_Exception */ public function testNotConstraintThrowsExceptionWhenConstraintUnmatched() { $this->mock->shouldReceive('foo')->with(ehough_mockery_Mockery::not(2))->once(); $this->mock->foo(2); $this->container->mockery_verify(); }