Skip to content

Commit

Permalink
Merge 06a9b61 into cce846b
Browse files Browse the repository at this point in the history
  • Loading branch information
James Dinsdale committed Jan 15, 2016
2 parents cce846b + 06a9b61 commit cbb2056
Show file tree
Hide file tree
Showing 5 changed files with 76 additions and 51 deletions.
2 changes: 1 addition & 1 deletion src/Object.php
Original file line number Diff line number Diff line change
Expand Up @@ -146,7 +146,7 @@ public function setValueForPath($path, $value = null)

// If this isn't the last item, and the current pointer is not a
// nested object, then we create one so that we can go deeper
if ($i < sizeof($bits) - 1 && !($pointer instanceof self)) {
if ($i < count($bits) - 1 && !($pointer instanceof self)) {
$parent->{$bit} = new static;
$pointer = &$parent->{$bit};
}
Expand Down
2 changes: 1 addition & 1 deletion tests/_support/Helper/Unit.php
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
<?php

namespace Helper;

// here you can define custom actions
// all public methods declared in helper class will be available in $I

class Unit extends \Codeception\Module
{

}
5 changes: 3 additions & 2 deletions tests/_support/UnitTester.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,8 @@


/**
* Inherited Methods
* Inherited Methods.
*
* @method void wantToTest($text)
* @method void wantTo($text)
* @method void execute($callable)
Expand All @@ -20,7 +21,7 @@ class UnitTester extends \Codeception\Actor
{
use _generated\UnitTesterActions;

/**
/*
* Define custom actions here
*/
}

0 comments on commit cbb2056

Please sign in to comment.