|
@@ 118-131 (lines=14) @@
|
| 115 |
|
$this->assertTrue($statement->equals($fetchedStatement->withId(null))); |
| 116 |
|
} |
| 117 |
|
|
| 118 |
|
public function getStatementsWithId() |
| 119 |
|
{ |
| 120 |
|
$fixtures = array(); |
| 121 |
|
|
| 122 |
|
foreach (get_class_methods('Xabbuh\XApi\DataFixtures\StatementFixtures') as $method) { |
| 123 |
|
$statement = call_user_func(array('Xabbuh\XApi\DataFixtures\StatementFixtures', $method)); |
| 124 |
|
|
| 125 |
|
if ($statement instanceof Statement) { |
| 126 |
|
$fixtures[$method] = array($statement->withId(StatementId::fromString(StatementFixtures::DEFAULT_STATEMENT_ID))); |
| 127 |
|
} |
| 128 |
|
} |
| 129 |
|
|
| 130 |
|
return $fixtures; |
| 131 |
|
} |
| 132 |
|
|
| 133 |
|
public function getStatementsWithoutId() |
| 134 |
|
{ |
|
@@ 133-146 (lines=14) @@
|
| 130 |
|
return $fixtures; |
| 131 |
|
} |
| 132 |
|
|
| 133 |
|
public function getStatementsWithoutId() |
| 134 |
|
{ |
| 135 |
|
$fixtures = array(); |
| 136 |
|
|
| 137 |
|
foreach (get_class_methods('Xabbuh\XApi\DataFixtures\StatementFixtures') as $method) { |
| 138 |
|
$statement = call_user_func(array('Xabbuh\XApi\DataFixtures\StatementFixtures', $method)); |
| 139 |
|
|
| 140 |
|
if ($statement instanceof Statement) { |
| 141 |
|
$fixtures[$method] = array($statement->withId(null)); |
| 142 |
|
} |
| 143 |
|
} |
| 144 |
|
|
| 145 |
|
return $fixtures; |
| 146 |
|
} |
| 147 |
|
|
| 148 |
|
/** |
| 149 |
|
* @expectedException \Xabbuh\XApi\Common\Exception\NotFoundException |