public function testSeeElementIsObjectThrowsError() { $trumpet = new \StdClass(); $trumpet->name = 'Trumpet 1'; $trumpet->pitch = 'B♭'; $trumpet->price = array('min' => 458, 'max' => 891); $this->setExpectedException('PHPUnit_Framework_ExpectationFailedException'); $this->userCollection->insert(array('id' => 5, 'trumpet' => $trumpet)); $this->userCollection->insert(array('id' => 6, 'trumpet' => $trumpet)); $this->module->seeElementIsObject('users', array(), 'trumpet'); }