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