Skip to content

Commit

Permalink
fixed tests
Browse files Browse the repository at this point in the history
  • Loading branch information
fabpot committed May 11, 2017
1 parent 537db19 commit f4adaef
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 16 deletions.
16 changes: 0 additions & 16 deletions test/Twig/Tests/Fixtures/filters/length.legacy.test

This file was deleted.

9 changes: 9 additions & 0 deletions test/Twig/Tests/Fixtures/filters/length.test
Expand Up @@ -6,17 +6,26 @@
{{ number|length }}
{{ to_string_able|length }}
{{ countable|length }}
{{ null|length }}
{{ magic|length }}
{{ non_countable|length }}
--DATA--
return array(
'array' => array(1, 4),
'string' => 'foo',
'number' => 1000,
'to_string_able' => new ToStringStub('foobar'),
'countable' => new CountableStub(42), /* also asserts we do *not* call __toString() */
'null' => null,
'magic' => new MagicCallStub(), /* used to assert we do *not* call __call */
'non_countable' => new \StdClass(),
);
--EXPECT--
2
3
4
6
42
0
1
1

0 comments on commit f4adaef

Please sign in to comment.