ArrayAssertTest::shouldNotContainElementOpProperty PHP Method

shouldNotContainElementOpProperty() public method

    public function shouldNotContainElementOpProperty()
    {
        $object = new stdClass();
        $object->prop = 2;
        CatchException::when(Assert::thatArray(array($object))->onProperty('prop'))->contains(1);
        CatchException::assertThat()->isInstanceOf('PHPUnit_Framework_ExpectationFailedException');
    }
ArrayAssertTest