Permalink
Browse files

Added OO-style test to has()

  • Loading branch information...
1 parent e0375bb commit 45d91cc66e81948be413418664b8ba2279f5e762 @brianhaveri committed Feb 1, 2012
Showing with 1 addition and 0 deletions.
  1. +1 −0 test/ObjectsTest.php
View
1 test/ObjectsTest.php
@@ -193,6 +193,7 @@ public function testHas() {
$this->assertTrue(__::has((object) $input, 'a'));
$this->assertFalse(__::has((object) $input, 'A'));
$this->assertFalse(__::has((object) $input, 'ab'));
+ $this->assertTrue(__((object) $input)->has('a'), 'works in OO-style call');
// docs
$this->assertTrue(__::has($input, 'b'));

0 comments on commit 45d91cc

Please sign in to comment.