/** * @expectedException \Mockery\Exception */ public function testNestedArrayContentConstraintThrowsExceptionWhenConstraintUnmatched() { $actual = array('a' => 1, 'b' => 2, 'c' => array('ca' => 1, 'cb' => 2), 'd' => array('da' => 1, 'db' => 2, 'dc' => array('dcb' => 2, 'dcc' => 3))); $expected = array('a' => 1, 'c' => array('ca' => 1), 'd' => array('da' => 1, 'dc' => array('dca' => 1))); $this->mock->shouldReceive('foo')->with(Mockery::nestedSubset($expected))->once(); $this->mock->foo($actual); $this->container->mockery_verify(); }