/home/techb158/dev.balacoffee.com/vendor/hamcrest/hamcrest-php/tests/Hamcrest/Core
NameSizeModeActions
AllOfTest.php15630644editdlrm
AnyOfTest.php24630644editdlrm
CombinableMatcherTest.php17730644editdlrm
DescribedAsTest.php10710644editdlrm
EveryTest.php8340644editdlrm
HasToStringTest.php23660644editdlrm
IsAnythingTest.php6840644editdlrm
IsCollectionContainingTest.php26300644editdlrm
IsEqualTest.php27660644editdlrm
IsIdenticalTest.php7690644editdlrm
IsInstanceOfTest.php18380644editdlrm
IsNotTest.php9980644editdlrm
IsNullTest.php4840644editdlrm
IsSameTest.php7950644editdlrm
IsTest.php11060644editdlrm
IsTypeOfTest.php14810644editdlrm
SampleBaseClass.php2310644editdlrm
SampleSubClass.php960644editdlrm
SetTest.php31980644editdlrm
Edit: /home/techb158/dev.balacoffee.com/vendor/hamcrest/hamcrest-php/tests/Hamcrest/Core/SetTest.php (3198B)
_instanceProperty); } protected function createMatcher() { return \Hamcrest\Core\Set::set('property_name'); } public function testEvaluatesToTrueIfArrayPropertyIsSet() { assertThat(array('foo' => 'bar'), set('foo')); } public function testNegatedEvaluatesToFalseIfArrayPropertyIsSet() { assertThat(array('foo' => 'bar'), not(notSet('foo'))); } public function testEvaluatesToTrueIfClassPropertyIsSet() { self::$_classProperty = 'bar'; assertThat('Hamcrest\Core\SetTest', set('_classProperty')); } public function testNegatedEvaluatesToFalseIfClassPropertyIsSet() { self::$_classProperty = 'bar'; assertThat('Hamcrest\Core\SetTest', not(notSet('_classProperty'))); } public function testEvaluatesToTrueIfObjectPropertyIsSet() { $this->_instanceProperty = 'bar'; assertThat($this, set('_instanceProperty')); } public function testNegatedEvaluatesToFalseIfObjectPropertyIsSet() { $this->_instanceProperty = 'bar'; assertThat($this, not(notSet('_instanceProperty'))); } public function testEvaluatesToFalseIfArrayPropertyIsNotSet() { assertThat(array('foo' => 'bar'), not(set('baz'))); } public function testNegatedEvaluatesToTrueIfArrayPropertyIsNotSet() { assertThat(array('foo' => 'bar'), notSet('baz')); } public function testEvaluatesToFalseIfClassPropertyIsNotSet() { assertThat('Hamcrest\Core\SetTest', not(set('_classProperty'))); } public function testNegatedEvaluatesToTrueIfClassPropertyIsNotSet() { assertThat('Hamcrest\Core\SetTest', notSet('_classProperty')); } public function testEvaluatesToFalseIfObjectPropertyIsNotSet() { assertThat($this, not(set('_instanceProperty'))); } public function testNegatedEvaluatesToTrueIfObjectPropertyIsNotSet() { assertThat($this, notSet('_instanceProperty')); } public function testHasAReadableDescription() { $this->assertDescription('set property foo', set('foo')); $this->assertDescription('unset property bar', notSet('bar')); } public function testDecribesPropertySettingInMismatchMessage() { $this->assertMismatchDescription( 'was not set', set('bar'), array('foo' => 'bar') ); $this->assertMismatchDescription( 'was "bar"', notSet('foo'), array('foo' => 'bar') ); self::$_classProperty = 'bar'; $this->assertMismatchDescription( 'was "bar"', notSet('_classProperty'), 'Hamcrest\Core\SetTest' ); $this->_instanceProperty = 'bar'; $this->assertMismatchDescription( 'was "bar"', notSet('_instanceProperty'), $this ); } }