/** @test */
 public function notSameAs_negates_the_behaviour()
 {
     $fn = Filter::notSameAs(101);
     $this->assertFalse($fn(101), 'same as');
     $this->assertTrue($fn('one hundred and one'), 'different');
     $this->assertTrue($fn(101.0), 'like');
 }
 /** @test */
 public function notHasMethodReturning_negates_the_behaviour()
 {
     $fn = Filter::notHasMethodReturning('getValue', self::VALUE);
     $this->assertFalse($fn(new MethodReturning(self::VALUE)), 'same as');
     $this->assertTrue($fn(new MethodReturning(self::DIFFERENT_VALUE)), 'different');
     $this->assertTrue($fn(new MethodReturning(self::LIKE_VALUE)), 'like');
 }
 /** @test */
 public function notNull_negates_the_behaviour()
 {
     $fn = Filter::notNull();
     $this->assertFalse($fn(null));
     $this->assertTrue($fn(5));
 }