/** * @expectedException ehough_mockery_mockery_Exception */ public function testHasValueConstraintThrowsExceptionWhenConstraintUnmatched() { $this->mock->shouldReceive('foo')->with(ehough_mockery_Mockery::hasValue(2))->once(); $this->mock->foo(array('a' => 1, 'b' => 3)); $this->container->mockery_verify(); }